import {observable, action} from 'mobx';
import { ListAdvanced } from 'weaver-mobile-page';

export default class SearchWorkplanStore {
  
  @observable listAd = new ListAdvanced.Store({ route: '/calendar/search', id: 'meetingSearchList' });

  @observable dataFetchOptions={ url: '/api/meeting/search/getData',method: 'post'}

  @observable  conditionFetchOptions={ url: '/api/meeting/search/getCondition',method: 'POST'}

  @action
  setState = (params = {}) => {
    Object.keys(params).forEach((key) => {
      this[key] = params[key];
    });
  }

}